package com.byzk.p2p.admin.money.util;

import java.util.ArrayList;
import java.util.List;

/**
 * 资金类型
 * 
 * @author suker.zhou
 *
 */
public class FundRecordType {

	//资金类型
	public static enum Type {
		RECHARGE(0, "充值"), 
		WITHDRAW(1, "提现"),
		TENDER(2, "投资"),
		REPAY(3, "还款"),
		BUY(4, "购买债权"),
		CHANGE(5, "转让债权"),
		UNFREEZEN(6, "资金解冻"),
		FREEZEN(7, "资金冻结"),
		GET(8, "借款成功"),
		REGISTER(9,"注册"),
		INVITE(10,"邀请"),
		FEE(11,"利息管理费"),
		TENDER_FREEZEN(12,"投标冻结"),
		TENDER_SUCCESS(13,"投标成功"),
		WITHDRAW_UNFREEZEN(14,"提现解冻"),
		WITHDRAW_SUCCESS(15,"提现成功"),
		WITHDRAW_FAILURE(16,"提现失败"),
		CHANGE_POUNDAGE(17,"债权转让手续费"),
		WITHDRAW_POUNDAGE(18,"提现手续费"),
		STAY_MONEY(19,"待领奖金"),
		ADD_PERCENT(20,"加息奖励"),
		SCORE_DRAW(21,"积分抽奖"),
		OTHER(22,"其它"),
		AC_OTHER(517,"其他"),
		AWARD_ADD(403,"投标奖励"),
		AWARD_LOWER(402,"扣除投标奖励"),
		BORROW_FEE(326,"借款手续费"),
		BORROW_FROST(453,"解冻借款担保金"),
		BORROW_KOUHUI(482,"借款人罚金扣回"),
		BORROW_SUCCESS(398,"借款入帐"),
		CASH_CANCEL(327,"取消提现解冻"),
		CASH_FROST(328,"提现冻结"),
		CHOUJIANGJIANGLI(507,"积分抽奖"),
		COLLECTION(452,"待收金额"),
		DF_REPAYMENT(496,"垫付后用户还款"),
		XBD_FEE(401,"充值手续费"),
		INVEST(400,"扣除冻结款"),
		INVEST_AWARD(500,"续投奖励"),
		INVEST_FALSE(405,"投标失败资金返回"),
		INVEST_REPAYMENT(454,"收款"),
		INVEST_REPAYMENT_WY(490,"客户提前还款违约"),
		INVEST_REPAYMENT_WYH(489,"客户提前还款违约"),
		KOUCHU_HONGBAO(519,"红包扣除"),
		LATE_COLLECTION(474,"逾期收入"),
		LATE_RATE(460,"逾期利息扣除"),
		LATE_REPAYMENT(494,"逾期扣款"),
		MARGIN(399,"保证金"),
		MARGIN_VOUCH(485,"担保成功冻结5%"),
		MB_FROST(495,"秒息冻结"),
		REALNAME(456,"实名认证费用"),
		XBD_RECHARGE(325,"用户充值"),
		RECHARGE_FALSE(458,"提现失败"),
		RECHARGE_FEE(449,"提现手续费"),
		RECHARGE_SUCCESS(457,"提现成功"),
		REPAYMENT(404,"还款"),
		REPAYMENT_WY(488,"提前还款违约"),
		SCENE_AC(480,"费用扣除"),
		SYSTEM_REPAYMENT(459,"逾期系统还款"),
		XBD_TENDER(397,"投标"),
		TENDER_MANGE(487,"利息管理费用"),
		TICHENG(462,"投标提成"),
		VIDEO(486,"视频认证费用"),
		VIP(455,"VIP会员费"),
		VOUCH_ADVANCED(481,"担保垫付扣费"),
		VOUCH_AWARD(484,"担保奖励接收"),
		VOUCH_AWARDPAY(483,"担保奖励支付");
		
		
		public int index;
		public String name;

		private Type(int index, String name) {
			this.index = index;
			this.name = name;
		}
	}
	
	public static List<FundRecordTypeVo> toList(Type[] typeList){
		List<FundRecordTypeVo> tempList=new ArrayList<FundRecordTypeVo>();
		for (Type type : typeList) {
			FundRecordTypeVo temp=new FundRecordTypeVo();
			temp.setIndex(type.index);
			temp.setName(type.name);
			tempList.add(temp);
		}
		return tempList;
	}
	
	public static void main(String[] args) {
		Type[] type=FundRecordType.Type.values();
		for (Type temp : type) {
			System.out.println(temp.index);
			System.out.println(temp.name);
		}
	}
}
